<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format">

    <xsl:import href="/usr/share/asciidoc/docbook-xsl/fo.xsl"/>

    <xsl:param name="paper.type" select="'A4'"/>

    <!-- font -->
    <xsl:param name="body.font.family">KaiGen Gothic CN</xsl:param>
    <xsl:param name="title.font.family">KaiGen Gothic CN</xsl:param>
    <xsl:param name="monospace.font.family">KaiGen Gothic CN</xsl:param>
    <xsl:param name="symbol.font.family">Roboto Mono</xsl:param>

    <!-- font size -->
    <xsl:param name="body.font.master">10</xsl:param>
    <xsl:attribute-set name="section.title.level1.properties">
        <xsl:attribute name="font-size">15pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="section.title.level2.properties">
        <xsl:attribute name="font-size">13pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="section.title.level3.properties">
        <xsl:attribute name="font-size">11pt</xsl:attribute>
    </xsl:attribute-set>

    <!-- line height -->
    <xsl:param name="line-height">1.6</xsl:param>

    <!-- enable section number -->
    <xsl:param name="section.autolabel">1</xsl:param>
    <xsl:param name="section.autolabel.max.depth" select="2"/>

    <!-- indent 2 char -->
    <xsl:attribute-set name="normal.para.spacing">
        <xsl:attribute name="text-indent">2em</xsl:attribute>
    </xsl:attribute-set>

    <!-- title margin -->
    <xsl:attribute-set name="component.title.properties">
        <xsl:attribute name="margin-top">6em</xsl:attribute>
        <xsl:attribute name="margin-bottom">2.5em</xsl:attribute>
    </xsl:attribute-set>

    <!-- section title margin -->
    <xsl:attribute-set name="section.title.properties">
        <xsl:attribute name="space-before.minimum">2.6em</xsl:attribute>
        <xsl:attribute name="space-before.optimum">2.8em</xsl:attribute>
        <xsl:attribute name="space-before.maximum">3.0em</xsl:attribute>
        <xsl:attribute name="space-after.minimum">1.6em</xsl:attribute>
        <xsl:attribute name="space-after.optimum">1.8em</xsl:attribute>
        <xsl:attribute name="space-after.maximum">2.0em</xsl:attribute>
    </xsl:attribute-set>

    <!-- code block -->
    <xsl:param name="shade.verbatim" select="1"/>
    <xsl:attribute-set name="shade.verbatim.style">
        <xsl:attribute name="background-color">#F2F2F2</xsl:attribute>
        <xsl:attribute name="padding-left">0.5em</xsl:attribute>
        <xsl:attribute name="padding-right">0.5em</xsl:attribute>
        <xsl:attribute name="padding-top">0.5em</xsl:attribute>
        <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
    </xsl:attribute-set>

    <!-- show links in footer -->
    <xsl:param name="ulink.show">1</xsl:param>
    <xsl:param name="ulink.footnotes">1</xsl:param>


</xsl:stylesheet>
